package com.soft.javase.ch02.test04;

/**
 * @author wangzhisen
 * @Desc TODO
 * @date 2025/4/18
 */
class Director extends Employee {
    private double transportPay;

    public Director(String name, String address, double basicSalary, double transportPay) {
        super(name, address, basicSalary);
        this.transportPay = transportPay;
    }

    public double getTransportPay() {
        return transportPay;
    }

    public void setTransportPay(double transportPay) {
        this.transportPay = transportPay;
    }

    @Override
    public void show() {
        super.show();
        System.out.println("交通补助: " + transportPay);
    }
}
